import request from '@/utils/request'

// 维修用料列表
export function listWorkPart(query) {
  return request({
    url: '/system/work/part/list',
    method: 'get',
    params: query
  })
}

// 获取维修用料详情
export function getWorkPart(id) {
  return request({
    url: '/system/work/part/' + id,
    method: 'get'
  })
}

// 新增维修用料
export function addWorkPart(data) {
  return request({
    url: '/system/work/part',
    method: 'post',
    data: data
  })
}

// 修改维修用料
export function updateWorkPart(data) {
  return request({
    url: '/system/work/part',
    method: 'put',
    data: data
  })
}

// 删除维修用料
export function delWorkPart(ids) {
  return request({
    url: '/system/work/part/' + ids,
    method: 'delete'
  })
}

